func runtime.alignUp
36 uses
runtime (current package)
cgocall.go#L346: sched.sp = *(*uintptr)(unsafe.Pointer(sched.sp + alignUp(sys.MinFrameSize, sys.StackAlign)))
malloc.go#L572: p = alignUp(p+(256<<10), heapArenaBytes)
malloc.go#L624: n = alignUp(n, heapArenaBytes)
malloc.go#L822: p = alignUp(p, align)
malloc.go#L836: pAligned := alignUp(p, align)
malloc.go#L1064: off = alignUp(off, 8)
malloc.go#L1072: off = alignUp(off, 8)
malloc.go#L1074: off = alignUp(off, 4)
malloc.go#L1076: off = alignUp(off, 2)
malloc.go#L1507: persistent.off = alignUp(persistent.off, align)
malloc.go#L1525: persistent.off = alignUp(goarch.PtrSize, align)
malloc.go#L1584: p := alignUp(l.next, align)
malloc.go#L1589: if pEnd := alignUp(l.next-1, physPageSize); pEnd > l.mapped {
mem_linux.go#L100: beg := alignUp(uintptr(v), physHugePageSize)
mfinal.go#L476: nret = alignUp(nret, uintptr(t.Align_)) + uintptr(t.Size_)
mfinal.go#L478: nret = alignUp(nret, goarch.PtrSize)
mgcscavenge.go#L916: max = alignUp(max, min)
mgcscavenge.go#L979: hugePageAbove := uint(alignUp(uintptr(start), pagesPerHugePage))
mheap.go#L1241: base = alignUp(base, physPageSize)
mheap.go#L1472: ask := alignUp(npage, pallocChunkPages) * pageSize
mheap.go#L1478: nBase := alignUp(end, physPageSize)
mheap.go#L1521: nBase = alignUp(h.curArena.base+ask, physPageSize)
mpagealloc.go#L177: return int(alignDown(uintptr(lo), e)), int(alignUp(uintptr(hi), e))
mpagealloc.go#L362: limit := alignUp(base+size, pallocChunkBytes)
mpagealloc_64bit.go#L78: b := alignUp(uintptr(entries)*pallocSumBytes, physPageSize)
mpagealloc_64bit.go#L119: limitOffset := alignUp(uintptr(sumIdxLimit)*pallocSumBytes, physPageSize)
mpagealloc_64bit.go#L211: needMax := alignUp(uintptr(chunkIndex(limit)), physPageSize/scSize)
mranges.go#L77: base := alignUp(a.base.addr(), uintptr(align)) + len
msize.go#L24: return alignUp(size, _PageSize)
pinner.go#L299: bytes := alignUp(s.pinnerBitSize(), 8)
proc.go#L4517: totalSize = alignUp(totalSize, sys.StackAlign)
stack.go#L352: n = uint32(alignUp(uintptr(n), physPageSize))
stkframe.go#L284: off: -int32(alignUp(abiRegArgsType.Size_, 8)), // It's always the highest address local.
stubs.go#L424: func alignUp(n, a uintptr) uintptr {
trace.go#L1450: n = alignUp(n, goarch.PtrSize)
traceback.go#L508: frame.sp += alignUp(sys.MinFrameSize, sys.StackAlign)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |